//--------------------------------------------------------------
//
// Qizhi Zhang 
// ezhung@gmail.com
// http://www.moorwind.com
//
//--------------------------------------------------------------
package reader.events
{
	import __AS3__.vec.Vector;
	
	import flash.events.Event;
	
	import reader.model.vo.BlogDraftVO;

	public class BlogDraftEvent extends Event
	{
		public static const OPEN_BLOG_DRAFT:String = "openBlogDraft"; //open blog draft and start edit in writer.
		public static const VIEW_BLOG_DRAFT:String = "viewBlogDraft";
		public static const DELETE_BLOG_DRAFT:String = "deleteBlogDraft";
		public static const DELETE_BLOG_DRAFTS:String = "deleteBlogDrafts";
		
		public var draft:BlogDraftVO;
		public var drafts:Vector.<BlogDraftVO>;
		
		public function BlogDraftEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, draft:BlogDraftVO = null)
		{
			super(type, bubbles, cancelable);
			
			if(draft)
			{
				this.draft = draft;
			}
		}
		
	}
}